﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;


namespace CRM_2013
{



    public partial class MainForm : XtraForm
    {

        private lessonsCtr lessonsPanel;
        private contactsCtr contactsPanel;
        private membersCtr membersPanel;
        private paymentsCtr paymentsPanel;

        public MainForm()
        {
            InitializeComponent();
            

        }

        private void MainForm_Load(object sender, EventArgs e)
        {

            testCtrBinding();
           

        }

        private void testCtrBinding()
        {
            paymentsPanel = new paymentsCtr();

            splitContainerControl.Panel2.Controls.Add(paymentsPanel);
            paymentsPanel.Dock = DockStyle.Fill;
        }

        private void testCtrClosing()
        {
            //membersPanel.updateDataMembers();
            paymentsPanel.Dispose();
        }


        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            testCtrClosing();
        }


    }
}